package com.atguigu.eduService.client;

import com.atguigu.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
//参数注解参数名不能省略
public interface VodClient {
    @DeleteMapping("/eduvod/vod/delVideo/{videoId}")
    public R  delVideo(@PathVariable("videoId") String videoId);

    @ApiOperation(value = "批量删除视频")
    @DeleteMapping("/eduvod/vod/delVideoList/")
    public R delVideoList(@PathVariable("videoList") List<String> videoIdList);
}
